package com.test.demo;

import com.test.demo.domain.*;
import com.test.demo.domain.Robot;
import com.test.demo.gui.CanvasGui;
import com.test.demo.gui.CustomMenuBar;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.embed.swing.SwingFXUtils;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
import javafx.util.Duration;

import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class RobotSimulation extends Application {

    public static final int width = 900;
    public static int height = 700;


    public static void main(String[] args) {
        launch(args);
    }

    int size = 20;

    @Override
    public void start(Stage primaryStage) {
        Scene scene = new Scene(CanvasGui.getInstance());

        Image icon = new Image(getClass().getResourceAsStream("/icons/狼.png"));  // 设置图标的文件路径
        primaryStage.getIcons().add(icon);  // 为 primaryStage 设置图标

        primaryStage.setTitle("机器人模拟");
        primaryStage.setScene(scene);
        primaryStage.show();
    }


}

